

package com.maoshi.shop.distribution.comment.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.maoshi.shop.bean.dto.OrderRefundDto;
import com.maoshi.shop.bean.model.OrderItem;
import com.maoshi.shop.common.util.PageParam;
import com.maoshi.shop.distribution.comment.dto.DistributionOrderDto;
import com.maoshi.shop.distribution.comment.dto.DistributionUserIncomeDto;
import com.maoshi.shop.distribution.comment.dto.DistributionUserIncomeOrderDto;
import com.maoshi.shop.distribution.comment.dto.StatisticsDisUserIncomeDto;
import com.maoshi.shop.distribution.comment.model.DistributionUserIncome;
import com.maoshi.shop.distribution.comment.param.RangeTimeParam;

import java.util.Date;
import java.util.List;

/**
 * @author lgh on 2019/04/01.
 */
public interface DistributionUserIncomeService extends IService<DistributionUserIncome> {


    IPage<DistributionUserIncome> incomeAndDistributionUserPage(Page page, Long shopId, RangeTimeParam rangeTimeParam, String userMobile, String orderNumber);


    /**
     * 获取分销员推广订单
     *
     * @return
     */
    IPage<DistributionOrderDto> getDistributionOrderDtoByDistributionUserId(Page page, Long distributionUserId);

    StatisticsDisUserIncomeDto statisticsDistributionUserIncome(Long distributionUserId);

    IPage<DistributionUserIncomeDto> getDistributionUserIncomePage(PageParam<DistributionUserIncome> page, Long distributionUserId);

    IPage<DistributionUserIncomeOrderDto> getMyPromotionOrderByState(PageParam<DistributionUserIncomeOrderDto> page, Long distributionUserId, Integer state);

    /**
     * 分销员佣金结算处理
     */
    void commissionSettlementHandle(Date date);

}
